-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip metadata processing after sending local reply #16154
Conversation
Hi @GinYM, welcome and thank you for your contribution. We will try to review your Pull Request as quickly as possible. In the meantime, please take a look at the contribution guidelines if you have not done so already. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add unit and also integration test if possible for this new case, please?
/wait |
Sure, will do that. |
b5085b1
to
9846ad2
Compare
codec_client_ = makeHttpConnection(lookupPort("http")); | ||
// Send a headers only request. | ||
IntegrationStreamDecoderPtr response; | ||
EXPECT_ENVOY_BUG( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this test is the same as the DownstreamProtocolIntegrationTest.ContinueAfterLocalReply
and it does not test the change you have made. To test you change the decodeHeaders()
of your test filer should return StopAll
and then the decodeMetadata()
should just have ASSERT(false);
in it. I think the exception should work too, but it would be harder to diagnose than ASSERT.
And the test should just test for response from local reply. If it hits the ASSERT in the decodeMetadata
then it would fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for review. Your are right, I have added StopIteration in decoderHeaders and removed the EXPECT_ENVOY_BUG. Aslo replace throw with assert.
/wait |
/retest |
Retrying Azure Pipelines: |
LGTM, you will need to resolve merge conflict before I can merge. |
/wait |
Signed-off-by: Yiming Jin <[email protected]>
…ply. Signed-off-by: Yiming Jin <[email protected]>
Signed-off-by: Yiming Jin <[email protected]>
Done. |
/retest |
Retrying Azure Pipelines: |
/retest |
Retrying Azure Pipelines: |
Signed-off-by: Yiming Jin <[email protected]>
Signed-off-by: Yiming Jin [email protected]
Commit Message: Skip metadata processing after sending local reply
Fixes #15654